class Solution:
    def bulbSwitch(self, n: int) -> int:
        i = 1
        while i*i<=n:
            i = i +1
        return i

if __name__ == '__main__':
    so = Solution()
    n = 99999
    r = so.bulbSwitch(n)
    print(r)
